<div id="setting">
	<div id="edit-title">基础设置</div>
	<div class="content">
		<div class="edit-name">入库类型</div>
		<div class="edit-content" id="inbound-type">
			<div class="hd">
				<div class="id">ID</div>
				<div class="name">类型</div>
				<div class="flg">进货标识</div>
				<div class="flg">退货标识</div>
				<div class="flg">换货标识</div>
				<div class="flg">其他标识</div>
				<div class="fixed">系统标识</div>
				<input type="hidden" name="type" value="inbound_type" />
			</div>
			<div class="content">
				<?php if (empty($settings['type']['inbound_types'])): ?>
				<div class="empty">暂无项目</div>
				<?php endif ?>
				<?php foreach ($settings['type']['inbound_types'] as $inbound_type): ?>
				<div class="each">
					<div class="id"><?php echo $inbound_type['id'] ?></div>
					<div class="name"><?php echo $inbound_type['name'] ?></div>
					<div class="flg"><?php if(1==$inbound_type['order_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$inbound_type['return_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$inbound_type['exchange_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$inbound_type['other_flg']): ?>*<?php endif; ?></div>
					<div class="fixed"><?php if(1==$inbound_type['fixed_flg']): ?>*<?php endif; ?></div>
				</div>
				<?php endforeach ?>
				<div class="each add-form">
					<div class="id">-</div>
					<div class="name"><input class="text" type="text" name="name" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="order_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="return_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="exchange_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="other_flg" /></div>
					<div class="fixed"></div>
					<input type="hidden" name="type" value="inbound_type" />
				</div>
			</div>
			<div class="actions">
				<div class="button add">添加</div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="edit-name">出库类型</div>
		<div class="edit-content" id="outbound-type">
			<div class="hd">
				<div class="id">ID</div>
				<div class="name">类型</div>
				<div class="flg">销售标识</div>
				<div class="flg">退货标识</div>
				<div class="flg">换货标识</div>
				<div class="flg">损耗标识</div>
				<div class="flg">其他标识</div>
				<div class="fixed">系统标识</div>
			</div>
			<div class="content">
				<?php if (empty($settings['type']['outbound_types'])): ?>
				<div class="empty">暂无项目</div>
				<?php endif ?>
				<?php foreach ($settings['type']['outbound_types'] as $outbound_type): ?>
				<div class="each">
					<div class="id"><?php echo $outbound_type['id'] ?></div>
					<div class="name"><?php echo $outbound_type['name'] ?></div>
					<div class="flg"><?php if(1==$outbound_type['sale_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$outbound_type['return_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$outbound_type['exchange_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$outbound_type['loss_flg']): ?>*<?php endif; ?></div>
					<div class="flg"><?php if(1==$outbound_type['other_flg']): ?>*<?php endif; ?></div>
					<div class="fixed"><?php if(1==$outbound_type['fixed_flg']): ?>*<?php endif; ?></div>
				</div>
				<?php endforeach ?>
				<div class="each add-form">
					<div class="id">-</div>
					<div class="name"><input class="text" type="text" name="name" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="sale_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="return_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="exchange_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="loss_flg" /></div>
					<div class="flg"><input class="radio" type="radio" name="flg" value="other_flg" /></div>
					<input type="hidden" name="type" value="outbound_type" />
					<div class="fixed"></div>
				</div>
			</div>
			<div class="actions">
				<div class="button add">添加</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
</div>
<div class="hide">
	<input type="hidden" name="ajax_data" id="ajax_data" />
</div>
<script type="text/javascript">
setting.init();
</script>